<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
<h:head>
</h:head>
<h:body>
	<rich:panel id="addCuentaPanel">
		<f:facet name="header">
			<h:outputText value="#{labels['titleAddPanelCuenta']}" styleClass="panelTitle"/>
		</f:facet>

		<h:form>
			<h:panelGrid columns="3" id="resultAddCuenta">
				<h:outputText value="#{labels['cuentaInitialBalance']}" />
				<h:inputText value="#{cuentaBean.cuenta.saldo}" required="true"
					id="saldoCta" validatorMessage="#{labels['messageValidateRange']}"
					label="Saldo field">
					<f:validateDoubleRange minimum="#{labels['minRangeValue']}"
						maximum="#{labels['maxRangeValue']}" />
				</h:inputText>
				<rich:message for="saldoCta" ajaxRendered="true" />
			</h:panelGrid>
			<br />
			<h:commandButton action="#{cuentaBean.guardarCuenta}"
				value="#{labels['save']}" id="btnGuardarCuenta"
				disabled="!#{sessionBean.currentPanel eq labels['panelAddCuenta']}">
			</h:commandButton>

		</h:form>

	</rich:panel>
</h:body>
</html>